package lxt.entity;
// default package



/**
 * DriverWorkloadId entity. @author MyEclipse Persistence Tools
 */

public class DriverWorkloadId  implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
    // Fields    

     private InvoiceInfo invoiceInfo;
     private DriverInfo driverInfo;


    // Constructors

    /** default constructor */
    public DriverWorkloadId() {
    }

    
    /** full constructor */
    public DriverWorkloadId(InvoiceInfo invoiceInfo, DriverInfo driverInfo) {
        this.invoiceInfo = invoiceInfo;
        this.driverInfo = driverInfo;
    }

   
    // Property accessors

    public InvoiceInfo getInvoiceInfo() {
        return this.invoiceInfo;
    }
    
    public void setInvoiceInfo(InvoiceInfo invoiceInfo) {
        this.invoiceInfo = invoiceInfo;
    }

    public DriverInfo getDriverInfo() {
        return this.driverInfo;
    }
    
    public void setDriverInfo(DriverInfo driverInfo) {
        this.driverInfo = driverInfo;
    }
   



   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof DriverWorkloadId) ) return false;
		 DriverWorkloadId castOther = ( DriverWorkloadId ) other; 
         
		 return ( (this.getInvoiceInfo()==castOther.getInvoiceInfo()) || ( this.getInvoiceInfo()!=null && castOther.getInvoiceInfo()!=null && this.getInvoiceInfo().equals(castOther.getInvoiceInfo()) ) )
 && ( (this.getDriverInfo()==castOther.getDriverInfo()) || ( this.getDriverInfo()!=null && castOther.getDriverInfo()!=null && this.getDriverInfo().equals(castOther.getDriverInfo()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getInvoiceInfo() == null ? 0 : this.getInvoiceInfo().hashCode() );
         result = 37 * result + ( getDriverInfo() == null ? 0 : this.getDriverInfo().hashCode() );
         return result;
   }   





}